<?php
require 'config.php';

$username = '123';
$password = password_hash('123', PASSWORD_DEFAULT);
$email = '123@123';
$role = 'admin';

$stmt = $conn->prepare("INSERT INTO users (username, email, password, role) VALUES (?, ?, ?, ?)");
$stmt->bind_param("ssss", $username, $email, $password, $role);

if ($stmt->execute()) {
    echo "管理员用户插入成功";
} else {
    echo "管理员用户插入失败: " . $stmt->error;
}

$stmt->close();
$conn->close();
?>